@extends('manage.layout')

@section('content')
    <section class="content-header">
        <h1>
            订单详情
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Order</a></li>
            <li class="active">Order Details</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">内容</h3>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body" style="text-align: center">
                        <table class="table table-bordered table-hover">
                            <tr>
                                <td width="10%">订单编号</td>
                                <td>{{ $order['order_code'] }}</td>
                            </tr>
                            <tr>
                                <td>名称</td>
                                <td>{{ $order['name'] }}</td>
                            </tr>
                            <tr>
                                <td>创建时间</td>
                                <td>{{ $order['create_time'] }}</td>
                            </tr>
                            <tr>
                                <td>签单人</td>
                                <td>{{ $order['dd_id'] }}</td>
                            </tr>
                            <tr>
                                <td>项目名称</td>
                                <td>{{ App\Model\Product::find($order['project_id'])['name'] }}</td>
                            </tr>
                            <tr>
                                <td>服务商</td>
                                <td>{{ App\Model\ServiceProvider::find($order['provider'])['name'] }}</td>
                            </tr>
                            <tr>
                                <td>订单总价</td>
                                <td>{{ $order['price'] }}元</td>
                            </tr>
                            <tr>
                                <td>首付款时间</td>
                                <td>{{ $order['firstpay_time'] }}</td>
                            </tr>
                            <tr>
                                <td>付款期数</td>
                                <td>{{ $order['payment_periods'] }}</td>
                            </tr>
                            <tr>
                                <td>付款说明</td>
                                <td>{{ $order['detail'] }}</td>
                            </tr>
                            <tr>
                                <td>附件</td>
                                <td>@foreach($att as $value)<a href="http://vipyipoint.oss-cn-beijing.aliyuncs.com/{{ $value }}">{{ substr(preg_replace('/.*\//','',$value),14) }}<br /></a>@endforeach</td>
                            </tr>
                            <tr>
                                <td>全流程</td>
                                <td>@foreach($sale_step_list as $value)<div class="btn-group" role="group" aria-label=""><button type="button" class="btn btn-default">{{$value['step_str']}}</button></div>@endforeach</td>
                            </tr>
                        </table>
                        {{--标题：{{ $share->title }}<br />--}}
                        {{--创建时间：{{ $sshare->update_time }}<br />--}}
                        {{--作者：{{ $share->dd_id }}<br />--}}

                        {{--内容：{{ $share->content }}<br />--}}
                        {{--附件：<br />@foreach($share->att as $value){{ substr(preg_replace('/.*\//','',$value),14) }}<br />@endforeach--}}
                    </div>
                </div>
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
@stop